package bean;
/***********************************************************************
 * Module:  bookbrrow.java
 * Author:  龙儿
 * Purpose: Defines the Class bookbrrow
 ***********************************************************************/

import java.util.*;

/** @pdOid 867bd605-6993-4890-865a-71ad59a2c171 */
public class bookbrrow {
   /** @pdOid 42b34cf6-8835-4cd0-84c8-edd069f2dc21 */
   public int id;
   /** @pdOid c7e9ac29-47a6-443d-bb92-c6ee7342ad25 */
   public int isback = 1;
   /** @pdOid 1eb51d38-3151-42d8-9a44-ef2c96189813 */
   public java.util.Date borrowDate;
   /** @pdOid 01b1ed96-6a92-414e-a7ee-d158dbd09621 */
   public java.util.Date backDate;
   
   /** @pdRoleInfo migr=no name=bookinfo assc=reference2 mult=0..1 side=A */
   public bookinfo bookinfo;
   /** @pdRoleInfo migr=no name=opterinfo assc=reference3 mult=0..1 side=A */
   public opterinfo opterinfo;
   /** @pdRoleInfo migr=no name=readerinfo assc=reference4 mult=0..1 side=A */
   public readerinfo readerinfo;
   
   
   /** @pdGenerated default parent getter */
   public bookinfo getBookinfo() {
      return bookinfo;
   }
   
   /** @pdGenerated default parent setter
     * @param newBookinfo */
   public void setBookinfo(bookinfo newBookinfo) {
      if (this.bookinfo == null || !this.bookinfo.equals(newBookinfo))
      {
         if (this.bookinfo != null)
         {
            bookinfo oldBookinfo = this.bookinfo;
            this.bookinfo = null;
            oldBookinfo.removeBookbrrow(this);
         }
         if (newBookinfo != null)
         {
            this.bookinfo = newBookinfo;
            this.bookinfo.addBookbrrow(this);
         }
      }
   }
   /** @pdGenerated default parent getter */
   public opterinfo getOpterinfo() {
      return opterinfo;
   }
   
   /** @pdGenerated default parent setter
     * @param newOpterinfo */
   public void setOpterinfo(opterinfo newOpterinfo) {
      if (this.opterinfo == null || !this.opterinfo.equals(newOpterinfo))
      {
         if (this.opterinfo != null)
         {
            opterinfo oldOpterinfo = this.opterinfo;
            this.opterinfo = null;
            oldOpterinfo.removeBookbrrow(this);
         }
         if (newOpterinfo != null)
         {
            this.opterinfo = newOpterinfo;
            this.opterinfo.addBookbrrow(this);
         }
      }
   }
   /** @pdGenerated default parent getter */
   public readerinfo getReaderinfo() {
      return readerinfo;
   }
   
   /** @pdGenerated default parent setter
     * @param newReaderinfo */
   public void setReaderinfo(readerinfo newReaderinfo) {
      if (this.readerinfo == null || !this.readerinfo.equals(newReaderinfo))
      {
         if (this.readerinfo != null)
         {
            readerinfo oldReaderinfo = this.readerinfo;
            this.readerinfo = null;
            oldReaderinfo.removeBookbrrow(this);
         }
         if (newReaderinfo != null)
         {
            this.readerinfo = newReaderinfo;
            this.readerinfo.addBookbrrow(this);
         }
      }
   }

}